﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace PresentationWpf.Memento
{
    public class Organizator
    {
        public Arbore.Arbore _ab;
        public UserControl _u; public string _state; public string _strategy; public string _content;
        public Memento SaveMemento()
        {
            return new Memento(_ab,_u, _state, _strategy, _content);
        }

        // Restores memento
        public void RestoreMemento(Memento memento)
        {
            this._ab = memento._ab;
            this._u = memento._u;
            this._state = memento._state;
            this._strategy = memento._strategy;
            this._content = memento._content;
        }
    }
}
